package com.tangfuzhong.test;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.tangfuzhong.config.Config03_LifeCycle_InitializingBean_PostConstruct_BeanPostProcessor;

public class IOCTest_03_LifeCycle_InitializingBean_PostConstruct_BeanPostProcessor {

	@Test
	public void test01(){
		//1、创建ioc容器
		// MyBeanPostProcessor, PostConstruct 的使用
		AnnotationConfigApplicationContext applicationContext
				= new AnnotationConfigApplicationContext(Config03_LifeCycle_InitializingBean_PostConstruct_BeanPostProcessor.class);
		System.out.println("容器创建完成...");
		
		//applicationContext.getBean("car");
		//关闭容器
		applicationContext.close();
	}

}
